<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="stylesheet" href="../css/base.css">
    <link rel="stylesheet" href="css/xianshang1.css">
    <link rel="stylesheet" href="../js/swiper/swiper.min.css">
    <script src="../js/common.js"></script>
    <script src="../js/jquery-2.2.3.min.js"></script>
    <script src="../js/rem.js"></script>
    <script src="../js/vue.min.js"></script>
    <script src="../js/vue-resource.min.js"></script>
    <script src="../js/swiper/swiper.min.js"></script>
    <title>Document</title>
    <style>

    </style>
</head>

<body>
    <!-- 主体 -->
    <div id="app">
        <div class="top_container">
            <!-- 头部页面选项卡  -->
            <div class="header_container">
                <div class="top_header">
                    <a href="xianxia1.html" class="header_title">易物商城-线下</a>
                </div>
                <div class="top_header_bottom">
                    <a href="xianshang1.html" class="header_title" style="line-height:0.22rem;">线上</a>
                </div>
            </div>
            <!-- 搜索框 -->
            <div class="foreach_container">
                <input type="text" readonly class="top_foreach" placeholder="请输入搜索商品名"  @click="foreach">
                <img class="top_for_img" src="img/top_foreach.png" alt="">
                <p class="top_img" @click="foreach">搜索</p>
            </div>
        </div>
        <!-- 轮播 -->
        <div class="top_carsouel">
            <div class="swiper-container">
                <div class="swiper-wrapper">
                    <div class="swiper-slide">
                        <img src="../img/index-ban1.png" alt="">
                    </div>
                    <div class="swiper-slide">
                        <img src="../img/index-ban1.png" alt="">
                    </div>
                </div>
            </div>
        </div>
        <!-- 分类 -->
        <div class="top_classify">
            <ul class="top_classify_ul">
                <li>
                    <a href="#">
                        <img src="img/img09.png" alt="">
                        <span>男装</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <img src="img/img09.png" alt="">
                        <span>女装</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <img src="img/img09.png" alt="">
                        <span>鞋靴</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <img src="img/img09.png" alt="">
                        <span>数码</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <img src="img/img09.png" alt="">
                        <span>箱包</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <img src="img/img09.png" alt="">
                        <span>箱包</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <img src="img/img09.png" alt="">
                        <span>箱包</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <img src="img/img09.png" alt="">
                        <span>箱包</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <img src="img/img09.png" alt="">
                        <span>箱包</span>
                    </a>
                </li>
                <li>
                    <a href="#">
                        <img src="img/img09.png" alt="">
                        <span>箱包</span>
                    </a>
                </li>
            </ul>
        </div>
        <!-- 内容 -->
        <div class="top_content">
            <!-- 商品 -->
            <p class="top_shop_title">—— 推荐商家 ——</p>
            <a href="#" class="shop_commodity">
                <div class="comm_img">
                    <img src="" alt="">
                </div>
                <p>皮囊（畅销250万册的国民 )皮囊（畅销250万册的国民 )</p>
                <span>￥45</span>
            </a>
        </div>
    </div>
    <script>
        new Vue({
            el: '#app',
            data: {
                list:[],
            },
            mounted: function() {
                this.$nextTick(() => {
                    var _this = this;
                    this.$http.post(SURL + '/jfd/shopGoods/offlineShops', {
                        emulateJSON: true
                    }).then(function (res) {
                        console.log(res.body);
                        res.body.forEach(element => {
                            this.list = res.body;
                        });
                    })
                })
            },
            methods:{
                foreach:function(){
                    window.location.href="";
                }
            }
        })
        var mySwiper = new Swiper('.swiper-container', {
            autoplay: 2000, //可选选项，自动滑动
            loop: true,
            speed: 300,
        })
    </script>
</body>

</html>